#ifndef FANRPM_H_
#define FANRPM_H_

#include <inttypes.h>
#include "Timer2.h"
#include "ComProtocol.h"
#include "GlobalDefinitions.h"

volatile uint16_t timer1_ticks_old;
volatile uint16_t timer1_ticks_new;
volatile uint8_t fan_channel;

void FanRpm_init(void);

void CalcRpm(void);

void FanRpm_setChannel(uint8_t cycle_count);

#endif
